#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {
	int x = 0;
	scanf("%d", &x);
	if (x % 400 == 0 || x % 4 == 0 && x % 100 != 0) {
		printf("YES");
	}
	else {
		printf("NO");
	}
	return 0;
}